<template>
  <div class="search">
    <div class="search-input">
      <input type="text" placeholder="搜索其实很简单">
    </div>
    <div class="icon-search">
      <i class="iconfont">&#xe652;</i>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HeaderSearch'
}
</script>

<style lang="stylus" scoped>
  .search
    float: left
    height: 100%
    margin-left: .4rem
  .search-input,.icon-search
    float: left
  .search-input input
    width: 2.3rem
    height: .46rem
    font-size: .24rem
    padding-left: .1rem
    background: #f2f2f2
  .search-input input:focus
    background: #fff
  .search-input input::-webkit-input-placeholder
    color: #aaa;
    font-size: .24rem;
  .icon-search
    color: #ccc
    margin-left: -.4rem
  .icon-search:hover
    cursor: pointer
    .iconfont
      vertical-align: middle
</style>